<template>
	<view class="container">
		<view class="" v-for="(item,index) in list" key="index" style="border-bottom: 1px solid #E4E4E4;">
			<view class="" style="font-weight: 600;padding: 10rpx 0;font-size: 36rpx;">{{item.title}}</view>
			<!-- <view class="content">{{item.content}}</view> -->
			<u--text :lines="4" :text="item.content"></u--text>
			<view class="" style="padding: 10rpx 0;">{{item.ctime}}</view>
		</view>
	</view>
</template>

<script>
	import {getMsgList} from  "@/api/api.js"
	export default {
		data() {
			return {
				list:[],
			}
		},
		onLoad() {
			this.show()
		},
		methods: {
			show(){
				getMsgList().then(res=>{
					this.list = res.data
				});
			}
			
		}
	}
</script>

<style>
	.container {
		background-color: #ffffff;
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
	.content{
		padding: 10rpx 0;
		white-space: ;
	}
</style>
